/**
 * jims
 */
package com.jims.master.modules.base.user.entity;


import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 用户子信息Entity
 *  @author jict
 * @version 2017-11-15
 */
public class MasterContactinfo extends DataEntity<MasterContactinfo> {
	
	private static final long serialVersionUID = 1L;
	private  String id;
	private String email;		// 邮箱
	private String mobilePhone;		// 手机
	private String postcode;		// 邮编
	private String qqNum;		// qq号码
	private String telephone;		// 固定电话
	private MasterBaseinfo baseinfo;		// 用户主表id
	private String placeAddress;		// 详细地址
    private String householdAddress;		// 详细地址
	private String urgentPerson;		// 紧急联系人
	private String urgentPhone;		// 紧急联系电话
	private String workAddress;		// 单位地址
	private String workName;		// 单位名称
	private String workPhone;		// 单位固定电话
	private String workType;		// *行业类别
	
	public MasterContactinfo() {
		super();
	}

	public MasterContactinfo(String id){
		super(id);
	}

	@Length(min=0, max=64, message="邮箱长度必须介于 0 和 64 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=0, max=11, message="手机长度必须介于 0 和 11 之间")
	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}
	
	@Length(min=0, max=255, message="邮编长度必须介于 0 和 255 之间")
	public String getPostcode() {
		return postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	
	@Length(min=0, max=64, message="qq号码长度必须介于 0 和 64 之间")
	public String getQqNum() {
		return qqNum;
	}

	public void setQqNum(String qqNum) {
		this.qqNum = qqNum;
	}
	
	@Length(min=0, max=64, message="固定电话长度必须介于 0 和 64 之间")
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public MasterBaseinfo getBaseinfo() {
		return baseinfo;
	}

	public void setBaseinfo(MasterBaseinfo baseinfo) {
		this.baseinfo = baseinfo;
	}

	@Length(min=0, max=255, message="详细地址长度必须介于 0 和 255 之间")
	public String getPlaceAddress() {
		return placeAddress;
	}

	public void setPlaceAddress(String placeAddress) {
		this.placeAddress = placeAddress;
	}
	
	@Length(min=0, max=255, message="紧急联系人长度必须介于 0 和 255 之间")
	public String getUrgentPerson() {
		return urgentPerson;
	}

	public void setUrgentPerson(String urgentPerson) {
		this.urgentPerson = urgentPerson;
	}
	
	@Length(min=0, max=255, message="紧急联系电话长度必须介于 0 和 255 之间")
	public String getUrgentPhone() {
		return urgentPhone;
	}

	public void setUrgentPhone(String urgentPhone) {
		this.urgentPhone = urgentPhone;
	}
	
	@Length(min=0, max=255, message="单位地址长度必须介于 0 和 255 之间")
	public String getWorkAddress() {
		return workAddress;
	}

	public void setWorkAddress(String workAddress) {
		this.workAddress = workAddress;
	}
	
	@Length(min=0, max=255, message="单位名称长度必须介于 0 和 255 之间")
	public String getWorkName() {
		return workName;
	}

	public void setWorkName(String workName) {
		this.workName = workName;
	}
	
	@Length(min=0, max=20, message="单位固定电话长度必须介于 0 和 20 之间")
	public String getWorkPhone() {
		return workPhone;
	}

	public void setWorkPhone(String workPhone) {
		this.workPhone = workPhone;
	}
	
	@Length(min=0, max=2, message="行业类别长度必须介于 0 和 2 之间")
	public String getWorkType() {
		return workType;
	}

	public void setWorkType(String workType) {
		this.workType = workType;
	}
	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}
	
}